home *** CD-ROM | disk | FTP | other *** search
- if the optionKey is up then
- global HEXInfo, docard, dobg, dost
- if docard is empty then put true into docard
- if dobg is empty then put true into dobg
- if dost is empty then put true into dost
- put 0 into cnum
- put "" into cdinf
- put "" into bginf
- put "" into stinf
- put " " into fiveSp
- put "Δí " into funcSp
- if docard is true then
- put the script of this cd into cret
- repeat with x = 1 to the number of lines in cret
- set cursor to busy
- if word 1 of line x of cret is "on" then
- put line x of cret into z
- put fiveSp & word 2 to (number of words of z) of z & return after cdinf
- add 1 to cnum
- else
- if word 1 of line x of cret is "function" then
- put line x of cret into z
- put funcSp & word 2 to (number of words of z) of z & return after cdinf
- add 1 to cnum
- end if
- end if
- end repeat
- put cnum into cdnum
- else
- put "NOT COUNTED" into cdnum
- end if
- put 0 into cnum
- if dobg is true then
- put the script of this bg into bret
- repeat with x = 1 to the number of lines in bret
- set cursor to busy
- if word 1 of line x of bret is "on" then
- put line x of bret into z
- put fiveSp & word 2 to (number of words of z) of z & return after bginf
- add 1 to cnum
- else
- if word 1 of line x of bret is "function" then
- put line x of bret into z
- put funcSp & word 2 to (number of words of z) of z & return after bginf
- add 1 to cnum
- end if
- end if
- end repeat
- put cnum into canum
- else
- put "NOT COUNTED" into canum
- end if
- put 0 into cnum
- if dost is true then
- put the script of this stack into sret
- repeat with x = 1 to the number of lines in sret
- set cursor to busy
- if word 1 of line x of sret is "on" then
- put line x of sret into z
- put fiveSp & word 2 to (number of words of z) of z & return after stinf
- add 1 to cnum
- else
- if word 1 of line x of sret is "function" then
- put line x of sret into z
- put funcSp & word 2 to (number of words of z) of z & return after stinf
- add 1 to cnum
- end if
- end if
- end repeat
- put cnum into sanum
- else
- put "NOT COUNTED" into sanum
- end if
- put "COMMAND-CLICK ON A HANDLER NAME TO SEE THE SCRIPT"&return into anse
- put "The number of handlers in cd script is"&&cdnum& return after anse
- put cdinf after anse
- put anse&"The number of handlers in bg script is"&&canum& return into anse
- put bginf after anse
- put anse&"The number of handlers in stack script is"&&sanum&return into anse
- put stinf after anse
- put anse into HEXInfo
- if there is a window "handleCount" then
- set text of window "handleCount" to HEXInfo
- else
- textoid "handleCount", HEXInfo, "10,10,323,162"
- set unlockAllowed of window "handleCount" to false
- end if
- else
- showHParam
- end if